#!/bin/ksh

BASEDIR=$2
SERVICE_BASE_DIR=$3
SERVICE_VERSION=$4
SERVICE_NAME=$5
SERVICE_DOMAIN_NAME=$6
SERVICE_SHORT_NAME=$7
META_INF=$8
BEA_HOME=$9

OLDDIR=`pwd`
. $1/bin/setWLSEnv.sh
cd $OLDDIR

ant -d -v -Dbasedir=$BASEDIR -Dservice.base.dir=$SERVICE_BASE_DIR -Dservice.version=$SERVICE_VERSION -Dservice.name=$SERVICE_NAME -Dservice.domain.name=$SERVICE_DOMAIN_NAME -Dservice.short.name=$SERVICE_SHORT_NAME -Dmeta.inf=$META_INF -Dbea.home=$BEA_HOME  -buildfile $SERVICE_BASE_DIR/build.xml ntd:ejbgen_call
